package com.jd.impl;

import com.jd.dao.GoodsDao;
import com.jd.entity.GoodsEntity;
import com.jd.entity.NameEntity;
import com.jd.service.IGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @Description: 实物商品表
 * @Author: jeecg-boot
 * @Date:   2021-04-01
 * @Version: V1.0
 */
@Service
public class GoodsServiceImpl implements IGoodsService {

    @Autowired
    GoodsDao goodsDao;

    @Override
    public ArrayList<NameEntity> getListAll() {
        return goodsDao.getListAll();
    }

    @Override
    public GoodsEntity getGoodsById(GoodsEntity goodsEntity) {
        return goodsDao.getGoodsById(goodsEntity);
    }
}
